import {Service} from "adajs";
import PowerList from "./../../../../controls/lists/power";
import List from "../../../../controls/lists";

class LodgeService extends Service {
    defaultData() {
        return {
            title: "",
            btns: [
                {action: "add", icon: ":for-add"}
            ],
            tabs: [
                {
                    "name": "增添正能量.共筑中国梦", active: true, type: List, option: {
                        url: "/api/cms/cmsArticle/queryPage",
                        type: PowerList,
                        parameter: {
                            siteId: "cyjlgb",
                            columnId: "IPN_CHINADREAM"
                        }
                    }
                },
                {
                    "name": "我看改革开放新成就", active: false, type: List, option: {
                        url: "/api/cms/cmsArticle/queryPage",
                        type: PowerList,
                        parameter: {
                            siteId: "cyjlgb",
                            columnId: "IPN_ECONOMIC_REFORM"
                        }
                    }
                }
            ]
        }
    }

    onupdate(current, data) {
        Object.assign(current, data);
    }
}

export default LodgeService;